package com.d3works.exception.module;

import com.d3works.app.D3worksModule;
import com.d3works.exception.service.HandleExceptionResponse;
import com.d3works.exception.service.HandleExceptionResponseImpl;
import com.google.inject.matcher.Matchers;

public class D3worksExceptionModule extends D3worksModule {

  @Override
  protected void configure() {
    bindInterceptor(
        Matchers.any(),
        Matchers.annotatedWith(HandleExceptionResponse.class),
        new HandleExceptionResponseImpl());
  }
}
